package org.jeecg.common.modules.settlement.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: settlement_detail
 * @Author: jeecg-boot
 * @Date:   2020-09-03
 * @Version: V1.0
 */
@Data
@TableName("settlement_detail")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="settlement_detail对象", description="settlement_detail")
public class SettlementDetail implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;
	/**结算单id*/
	@Excel(name = "结算单id", width = 15)
    @ApiModelProperty(value = "结算单id")
    private Long settlementId;
	/**结算详情类型  1 平台  2医生*/
	@Excel(name = "结算详情类型  1 平台  2医生", width = 15)
    @ApiModelProperty(value = "结算详情类型  1 平台  2医生")
    private Integer type;
	/**分成用户ID*/
	@Excel(name = "分成用户ID", width = 15)
    @ApiModelProperty(value = "分成用户ID")
    private String userId;
	/**结算金额*/
	@Excel(name = "结算金额", width = 15)
    @ApiModelProperty(value = "结算金额")
    private BigDecimal settlementAmount;
	/**赠送金额*/
	@Excel(name = "赠送金额", width = 15)
    @ApiModelProperty(value = "赠送金额")
    private BigDecimal givingAmount;
	/**分成比例*/
	@Excel(name = "分成比例", width = 15)
    @ApiModelProperty(value = "分成比例")
    private BigDecimal ratio;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
    private String createUser;
}
